<?=$head."
"?>
<rss version="2.0">
   <channel>
      <title>Blogmer</title>
      <link>http://speedovation.org/</link>
      <description>Latest blogmer update</description>
      <language>en-us</language>
      <pubDate><?=date(DATE_RFC822);?></pubDate>

      <lastBuildDate>Tue, 10 Jun 2003 09:41:01 GMT</lastBuildDate>
      <docs>http://blogs.law.harvard.edu/tech/rss</docs>
      <generator>Weblog Editor 2.0</generator>
      <managingEditor>editor@example.com</managingEditor>
      <webMaster>webmaster@example.com</webMaster>
      
      <?php foreach($posts->result() as $entry): ?>
    
      <item>
      	<title><?=xml_convert($entry->Title)?></title>
        <link><?=site_url('blog/post/' . $entry->URLTitle) ?></link>
        <description>
			<?php 
				$str=substr($entry->Content,0,300);  
				$str=str_replace("<" , '&lt;', $str);  
				$str=str_replace(">" , '&gt;', $str); 
				echo $str;	?> 
        </description>
     	<pubDate><?=date("D, j M Y  h\\:i\\:s e",strtotime($entry->PostedDate))?></pubDate>
        <guid><?php echo site_url('blog/post/' . $entry->URLTitle) ?></guid>
	  </item>
      
     <?php endforeach; ?>
   </channel>
</rss>